﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.AlbumEpisodesModel

<div class="toolBar">
    <ul>
        <li>@Html.ActionLink("新建", "Create")</li>
        <li>@Html.ActionLink("设为下载点", "Create")</li>
        <li>@Html.ActionLink("删除", "Create")</li>
    </ul>
</div>
<table class="list" width="100%">
<thead>
    <tr>
        <th width="10px"><input type="checkbox" class="selectAll" group="episode" onclick="selectGroup(this)" /></th>
        <th width="50px">剧集</th>
        <th width="100px">名称</th>
        <th width="150px" style="text-align:left">标记</th>
        <th width="150px">下载点</th>
        <th style="text-align:left">网址</th>
        <th width="100px"</th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model.Items) {
    <tr>
        <td style="text-align:center"><input type="checkbox" group="episode" value="@item.Id" /></td>
        <td style="text-align:center">@item.EpisodeIndex</td>
        <td>@item.Name</td>
        <td>@item.Token</td>
        <td style="text-align:center"></td>
        <td>@item.Url</td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { albumId = Model.AlbumId, siteId = Model.SiteId, episode = item.EpisodeIndex }) |
            @Html.ActionLink("删除", "Delete", new { albumId = Model.AlbumId, siteId = Model.SiteId, episode = item.EpisodeIndex })
        </td>
    </tr>
}
</tbody>
</table>